package com.kai.steering.data.service.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.kai.steering.data.service.entity.po.Permission;
import com.kai.steering.data.service.entity.po.Question;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PermissionMapper extends BaseMapper<Permission> {
    Permission getPermissionById(String id);

    IPage<Permission> getPermissionPageList(IPage<Permission> page, @Param(Constants.WRAPPER) Wrapper<Permission> queryWrapper);

    List<Permission> getPermissionByRole(String roleId);
}
